
<link rel="stylesheet" type="text/css" href="<@baseUrl url='/static/comm/plugins/ztree/css/zTreeStyle/zTreeStyle.css'/>">
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/dtree.css'/>">
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/font/dtreefont.css'/>">
<script src="<@baseUrl url='/static/js/util/util.js'/>"></script>
<script type="text/javascript">
    AppComm.include.load("<@baseUrl url='/static/comm/js/manager/groupManagerForm.js'/>","js")
</script>

<div class="layui-tab-item layui-show">
    <br>
    <div class="layui-tab-item layui-show">
        <div class="groupManagerForm_box"></div>
    </div>
</div>
<script id="groupManagerForm_template" type="text/html">
    <form class="layui-form site-block" action="" style="height: 650px;">
        <input type="hidden" id="id" value="{{id}}" >
        <div class="layui-tab-item layui-show" style="width:652px;margin: 0 auto;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">组织名称</label>
                    <div class="layui-input-inline">
                        <input type="text" id="groupName" name="groupName" lay-verify="required|groupName" placeholder="请输入组织名称" autocomplete="off" class="layui-input" value="{{groupName}}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">上级组织</label>
                    <div class="layui-input-inline">

                        <input type="hidden" id="parentId" name="parentId" lay-verify="parentId" autocomplete="off" value="{{parentId}}">
                        <span style="display:none" id="parentNameInput">
                            <ul id="parentName" class="dtree" data-id="0" ></ul>
                        </span>
                        <span style="display:none; margin-top: 10px;" id="parentNameShow">{{parentName}}</span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">排序号</label>
                    <!--<div class="layui-input-inline">-->
                    <input type="text" id="orderId" name="orderId" lay-verify="required|number" placeholder="请输入排序号" autocomplete="off" class="layui-input" value="{{orderId}}" style="width: 500px;">
                    <!--</div>-->
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">说明</label>
                    <!--<div class="layui-input-inline">-->
                    <textarea placeholder="请输入内容" id="comment" name="comment" class="layui-textarea" style="width: 500px;">{{comment}}</textarea>
                    <!--</div>-->
                </div>
            </div>
            <br>
            <div class="layui-form-item">
                <div class="layui-inline" style="margin-left: 225px;width:182px;">
                    <@hasPermission key="groupManager:save" html='<button type="submit" class="layui-btn layui-btn-default layui-btn-sm" lay-submit lay-filter="saveBtn">提交</button>'/>
                    <button class="layui-btn layui-btn-primary layui-btn-sm" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>
